package com.ymtms.arrivalofgoods.constant;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

public class RandomPlace {


    public static String  randomPlace(){
        String [] place={"龙泉驿区","双流县","武侯区","青羊区","金牛区","高新区",};

        List list=new ArrayList();
         Collections.addAll(list, place);
       Collections.shuffle(list);
       String result=null;
        for (int i = 0; i < list.size(); i++) {
            result= (String) list.get(0);
        }
        return result;
    }

    public static String  randomPeople(){
        String [] place={"李浩","文青","青龙","白虎","王宝三","李四强",};

        List list=new ArrayList();
        Collections.addAll(list, place);
        Collections.shuffle(list);
        String result=null;
        for (int i = 0; i < list.size(); i++) {
            result= (String) list.get(0);
        }
        return result;
    }


    public static void main(String[] args) {
        System.out.println(randomPlace());
    }



}
